﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc_YeuCauSoanHangReport.ascx.cs"
    Inherits="Report_UserControl_uc_YeuCauSoanHangReport" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css" media="print">
    .jwts_tabbernav
    {
        display: none;
    }
</style>
<script type="text/javascript">    var jwts_slideSpeed = 30; var jwts_timer = 10;</script>
<script type="text/javascript">
    $(function () {
        var objNgay = document.getElementById("<%=txtNgay.ClientID %>");
        $(objNgay).datepicker({
            showOn: "button",
            buttonImage: "../images/calendar.gif",
            buttonImageOnly: true
        });
    });
</script>
<div style="height: 850px">
    <div class="TitlePage">
        TÌNH HÌNH GIAO HÀNG</div>
    <asp:Panel runat="server" ID="Panel1">
        <div style="text-align: left; width: 100%">
            <fieldset>
                <table width="100%">
                    <tr>
                        <td class="tdsearch1">
                        </td>
                        <td align="left" class="tdsearch2">
                            Ngày <span style="color: Red">(*)</span>:
                        </td>
                        <td align="left" class="tdsearch3">
                            <asp:TextBox runat="server" ID="txtNgay" MaxLength="50" CssClass="txtBoxDate" Width="90%"></asp:TextBox>
                        </td>
                        <td class="tdsearch4">
                        </td>
                        <td align="left" class="tdsearch5">
                        </td>
                        <td align="left" class="tdsearch6" style="margin-right: 5px">
                        </td>
                        <td class="tdsearch7">
                        </td>
                    </tr>
                    <tr>
                        <td class="tdsearch1">
                        </td>
                        <td align="left" class="tdsearch2">
                            Chọn tuyến <span style="color: Red">(*)</span>:
                        </td>
                        <td align="left" class="tdsearch3">
                            <telerik:RadComboBox ID="ddlRoute" runat="server" Height="140px" Width="100.5%" RenderingMode="Full"
                                CheckBoxes="true" EnableCheckAllItemsCheckBox="true">
                                <Localization AllItemsCheckedString="Đã chọn tất cả" CheckAllString="Chọn tất cả"
                                    ItemsCheckedString=" dòng được chọn" />
                            </telerik:RadComboBox>
                        </td>
                        <td class="tdsearch4">
                        </td>
                        <td align="left" class="tdsearch5">
                            Chọn nhóm KH <span style="color: Red">(*)</span>:
                        </td>
                        <td align="left" class="tdsearch6" style="margin-right: 5px">
                            <telerik:RadComboBox ID="ddlGroupCode" runat="server" Height="140px" Width="100.5%"
                                RenderingMode="Full" CheckBoxes="true" EnableCheckAllItemsCheckBox="true">
                                <Localization AllItemsCheckedString="Đã chọn tất cả" CheckAllString="Chọn tất cả"
                                    ItemsCheckedString=" dòng được chọn" />
                            </telerik:RadComboBox>
                        </td>
                        <td class="tdsearch7">
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="7">
                            <asp:Label ID="lblAlerting" runat="server" CssClass="Alerting"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="7">
                            <asp:Button CssClass="btn_admin" ID="btnSearch" runat="server" Text="Tìm kiếm" OnClick="btnSearch_Click" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </asp:Panel>
    <div style="clear: both; height: 10px">
    </div>
    <div style="width: 100%; height: 600px; overflow-x: scroll; overflow-y: scroll;">
        <div id="divSearchList1" style="width: 130%">
            <ul id="33" class="filetree treeview">
                <li class="closed collapsable">
                    <div class="hitare1 collapsable-hitarea">
                    </div>
                    <table cellspacing="0" border="1" style="width: 100%; border-collapse: collapse;">
                        <tr class="trmaindel">
                            <th class="thmaindel1" scope="col" align="center">
                                Tuyến
                            </th>
                            <th class="thmaindel2" scope="col" align="center">
                                Từ Kho
                            </th>
                            <th class="thmaindel3" scope="col" align="center">
                                Số Orders
                            </th>
                            <th class="thmaindel4" scope="col" align="center">
                                Earliest ETA
                            </th>
                            <th class="thmaindel5" scope="col" align="center">
                                Latest ETA
                            </th>
                            <th class="thmaindel6" scope="col" align="center">
                                Số ngày trễ so với Earliest ETA
                            </th>
                            <th class="thmaindel7" scope="col" align="center">
                            </th>
                            <th class="thmaindel8" scope="col" align="center">
                            </th>
                            <th class="thmaindel9" scope="col" align="center">
                                Số Thùng
                            </th>
                            <th class="thmaindel10" scope="col" align="center">
                                Số KG
                            </th>
                            <th class="thmaindel11" scope="col" align="center">
                                Tổng số phiếu xuất
                            </th>
                            <th class="thmaindel12" scope="col" align="center">
                                Tổng số hóa đơn
                            </th>
                        </tr>
                    </table>
                </li>
            </ul>
            <ul id="browser" class="filetree treeview">
                <asp:Repeater ID="repRouteList" runat="server">
                    <ItemTemplate>
                        <li class="closed collapsable" >
                            <table cellspacing="0" border="1" style="width: 100%; border-collapse: collapse;">
                                <tr class="trroutemaster">
                                    <td class="tdroutemaster1">
                                        <asp:HiddenField ID="hdfRouteID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ROUTEID")%>' />
                                        <%# DataBinder.Eval(Container.DataItem, "ROUTENAME")%>
                                    </td>
                                    <td class="tdroutemaster2">
                                        <asp:Label ID="lblROUTE_TENKHO" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "TENKHO")%>'></asp:Label>
                                    </td>
                                    <td class="tdroutemaster3" align="center">
                                        <asp:Label ID="lblROUTE_TONGORDER" runat="server" Text=' <%# string.Format("{0:N0}", DataBinder.Eval(Container.DataItem, "TongOrder"))%>'></asp:Label>
                                    </td>
                                    <td class="tdroutemaster4" align="center">
                                        <asp:Label ID="lblROUTE_EARLIESTETA" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "EarliestETA")%>'></asp:Label>
                                    </td>
                                    <td class="tdroutemaster5" align="center">
                                        <asp:Label ID="lblROUTE_LATESTETA" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "LatestETA")%>'></asp:Label>
                                    </td>
                                    <td class="tdroutemaster6" align="center">
                                        <asp:Label ID="lblROUTE_SONGAYTRE" runat="server" Text=' <%# string.Format("{0:N0}", DataBinder.Eval(Container.DataItem, "SoNgayTre"))%>'></asp:Label>
                                    </td>
                                    <td class="tdroutemaster7" align="center">
                                    </td>
                                    <td class="tdroutemaster8" align="center">
                                    </td>
                                    <td class="tdroutemaster9" align="center">
                                        <asp:Label ID="lblROUTE_THUNG" runat="server" Text=' <%# string.Format("{0:N2}",  DataBinder.Eval(Container.DataItem, "SoThungTheoRoute"))%>'></asp:Label>
                                    </td>
                                    <td class="tdroutemaster10" align="center">
                                        <asp:Label ID="lblROUTE_KG" runat="server" Text=' <%# string.Format("{0:N2}",  DataBinder.Eval(Container.DataItem, "So_KG_TheoRoute"))%>'></asp:Label>
                                    </td>
                                    <td class="tdroutemaster11" align="center">
                                        <asp:Label ID="lblROUTE_TONGSOPX" runat="server" Text=' <%# string.Format("{0:N0}",  DataBinder.Eval(Container.DataItem, "TongSoPX"))%>'></asp:Label>
                                    </td>
                                    <td class="tdroutemaster12" align="center">
                                        <asp:Label ID="lblROUTE_TONGSOAR" runat="server" Text=' <%# string.Format("{0:N0}", DataBinder.Eval(Container.DataItem, "TongSoAR"))%>'></asp:Label>
                                    </td>
                                </tr>
                            </table>
                            <ul id="Ul1" style="display: none;">
                                <table cellspacing="0" border="1" style="width: 100%; border-collapse: collapse;">
                                    <tr class="trroutemaster">
                                        <th class="throutemaster1" scope="col" align="center">
                                            STT
                                        </th>
                                        <th class="throutemaster2" scope="col" align="center">
                                            Mã KH
                                        </th>
                                        <th class="throutemaster3" scope="col" align="center">
                                            Tên KH
                                        </th>
                                        <th class="throutemaster4" scope="col" align="center">
                                            Số SO
                                        </th>
                                        <th class="throutemaster5" scope="col" align="center">
                                            Tổng SL
                                        </th>
                                        <th class="throutemaster6" scope="col" align="center">
                                            Ngày yêu cầu ETD
                                        </th>
                                        <th class="throutemaster7" scope="col" align="center">
                                            TSL yêu cầu
                                        </th>
                                        <th class="throutemaster8" scope="col" align="center">
                                            TSL thực soạn
                                        </th>
                                        <th class="throutemaster9" scope="col" align="center">
                                            Số thùng giao
                                        </th>
                                        <th class="throutemaster10" scope="col" align="center">
                                            Số KG giao
                                        </th>
                                        <th class="throutemaster11" scope="col" align="center">
                                            Đã ra Delivery
                                        </th>
                                        <th class="throutemaster12" scope="col" align="center">
                                            Đã ra AR
                                        </th>
                                    </tr>
                                </table>
                                <asp:Repeater ID="repRouteDetail" runat="server">
                                    <ItemTemplate>
                                        <li style="padding: 0px">
                                            <table cellspacing="0" border="1" style="width: 100%; border-collapse: collapse;">
                                                <tr class="trsomaster">
                                                    <td class="tdsomaster1" align="center">
                                                        <asp:Label ID="lblSO_STT" runat="server" Text='  <%# Container.ItemIndex + 1 %>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster2">
                                                        <asp:Label ID="lblSO_CARDCODE" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "MAKHACHHANG")%>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster3">
                                                        <asp:Label ID="lblSO_CARDNAME" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "CardName")%>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster4" align="center">
                                                        <%# DataBinder.Eval(Container.DataItem, "SOID")%>
                                                    </td>
                                                    <td class="tdsomaster5" align="center">
                                                        <asp:Label ID="lblSO_TOTAL_QTY" runat="server" Text=' <%# string.Format("{0:N0}", DataBinder.Eval(Container.DataItem, "TSL"))%>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster6" align="center">
                                                        <asp:Label ID="lblSO_NGAYYC_ETD" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "NgayETD")%>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster7" align="center">
                                                        <asp:Label ID="lblSLYEUCAU" runat="server" Text=' <%# string.Format("{0:N2}", DataBinder.Eval(Container.DataItem, "TSLYEUCAU"))%>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster8" align="center">
                                                        <asp:Label ID="lblSLSOANHANG" runat="server" Text=' <%# string.Format("{0:N2}", DataBinder.Eval(Container.DataItem, "TSLSOANHANG"))%>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster9" align="center">
                                                        <asp:Label ID="lblSO_SOTHUNG" runat="server" Text=' <%# string.Format("{0:N2}", DataBinder.Eval(Container.DataItem, "SoThung"))%>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster10" align="center">
                                                        <asp:Label ID="lblSO_KG" runat="server" Text=' <%# string.Format("{0:N2}",  DataBinder.Eval(Container.DataItem, "So_KG"))%>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster11">
                                                        <asp:Label ID="lblSO_DELNBR" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "DelNbr")%>'></asp:Label>
                                                    </td>
                                                    <td class="tdsomaster12">
                                                        <asp:Label ID="lblSO_INVCNBR" runat="server" Text=' <%# DataBinder.Eval(Container.DataItem, "InvcNbr")%>'></asp:Label>
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
        </div>
    </div>
</div>
<asp:HiddenField ID="hdfDateTime" runat="server" />
